#pragma once

#include <stdio.h>

#define MaxStackSize 100
typedef char ElemType;

typedef struct Stack
{
	ElemType stack[MaxStackSize];
	int top;
}SequenceStack;

void StackInitiate(SequenceStack* S);
int StackNotEmpty(SequenceStack* S);
int StackPush(SequenceStack* S, ElemType x);
int StackPop(SequenceStack* S, ElemType* d);
int StackTop(SequenceStack* S, ElemType* d);
